// 1. 引入vue-router
import VueRouter from 'vue-router'

// 导入组件
import user from './components/User.vue'
import goodslist from './components/GoodsList.vue'
import UserInfo from "./biz/UserInfo.vue";

// 3. 配置路由
var router = new VueRouter({
    routes: [
        {
            path: '/user', component: user,
            children: [
                {path: 'info', component: UserInfo}
            ]
        },
        {
            path: '/goods', component: goodslist
        }
    ]
});

// 导出
export default router;
